
public class Demo13 {
    public static void main(String[] args) {
        /*Thread t=new Thread(){
            @Override
            public void run() {
                //System.out.println(Thread.currentThread().getName());
            }
        };
        t.start();*/

        Thread t=new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName());
            }
        });
        t.start();
        //System.out.println(Thread.currentThread().getName());
    }
}
